home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gamers Delight 2
/
Gamers Delight 2.iso
/
Aminet
/
game
/
misc
/
TownMaze.lha
/
TownMaze
/
src.lzh
/
interiorcell.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-08-04
|
577b
|
26 lines
/*
** interiorcell.c Copyright 1991 Kent Paul Dolan,
** Mountain View, CA, USA 94039-0755
**
** Written to satisfy an inquiry on USENet's rec.games.programmer newsgroup.
** May be freely used or modified in any non-commercial work. Copyrighted
** only to prevent patenting by someone else.
*/
#include <stdio.h>
#include "townmaze.h"
#include "townproto.h"
#ifdef __STDC__
int interiorcell(int cellid)
#else
int interiorcell(cellid)
int cellid;
#endif
{
int i;
for (i = 0; i < 4; i++)
if (!nhbrexists(cellid,i)) return (1==0);
return (1==1);
}